package buttons;

import processing.core.PApplet;
import buttons.control.C_Button;
import buttons.view.V_TextButton;
import view.DisplayList;
import controllers.ControlManager;

public class TextButton extends Button {

	public TextButton(DisplayList v, ControlManager c, String n, float xWidth, float yHeight, PApplet p) {
		super(v, c, n, xWidth, yHeight);
		((V_TextButton)vButton).useFont(p);
	}
	
	public TextButton(DisplayList v, ControlManager c, String n, float xWidth, float yHeight, float xPos, float yPos, PApplet p) {
		super(v, c, n, xWidth, yHeight, xPos, yPos);
		((V_TextButton)vButton).useFont(p);
	}
	
	@Override
	public void generateButtons(DisplayList v, ControlManager c, String n, float xWidth, float yHeight)
	{
		vButton = new V_TextButton(n, xWidth, yHeight);
		cButton = new C_Button(vButton);
		addToManagerLists(v, c);
	}

}
